package com.itheima.dubbo.interfaces;

import com.itheima.commons.model.domain.UserFreeze;

/*
 * @ProjectName:project-exercise
 * @Package:com.itheima.dubbo.interfaces
 * @ClassName:UserFreezeApi
 * @Author:ZHANG
 * @Date:2021-12-19 10:48
 * @Description:
 */
public interface UserFreezeApi {
    //查询是否有该用户冻结信息
    UserFreeze queryUserFreezeInfo(Long userId);

    //更新用户冻结信息
    void updateUserFreezeInfo(Long userId, String freezingTime, String freezingRange, String reasonsForFreezing, String frozenRemarks);

    //插入用户冻结信息
    void insertUserFreezeInfo(Long userId, String freezingTime, String freezingRange, String reasonsForFreezing, String frozenRemarks);

    //解冻用户
    void unFreezeUser(Long userId, String reasonsForThawing);

}
